<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 学生成绩管理系统</title>
    <link rel="stylesheet" href="/css/layui.css">
    <link rel="stylesheet" href="/css/dp07.css">
    <style>
        body { background: #f2f2f2; }
        .login-box { width: 360px; margin: 100px auto; background: #fff; padding: 40px 30px 30px 30px; border-radius: 8px; box-shadow: 0 2px 8px #ddd; }
        .login-title { text-align: center; font-size: 24px; margin-bottom: 30px; color: #1E9FFF; }
        .error-msg { color: #f00; text-align: center; margin-bottom: 10px; }
    </style>
</head>
<body>
<div class="login-box">
    <div class="login-title">学生成绩管理系统</div>
    <form class="layui-form" th:action="@{/login}" method="post">
        <div th:if="${error}" class="error-msg" th:text="${error}"></div>
        <div class="layui-form-item">
            <input type="text" name="username" required lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item">
            <input type="password" name="password" required lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit>登录</button>
        </div>
    </form>
</div>
<script src="/js/layui.js"></script>
</body>
</html> 